<?php if (!defined('THINK_PATH')) exit(); echo '<?'; ?>
xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>搜索结果</title>
    <link rel="stylesheet" type="text/css" href="/PHPParser/Public/Css/style.css" />    
</head>
<body>
    <div class="content">
        <div class="search">
            <form action="../../Home/Search/search" method="post" >
                <input class="search_text" type="text" name="search_text" />
                <input class="search_button" type="submit" value="搜索"/>
            </form>
            <p class="rel_info"><?php echo ($length); ?>条搜索结果,用时<?php echo ($search_time); ?>秒。</p>
        </div>
    
        <div class="books">  
            <?php if(is_array($result)): foreach($result as $key=>$book): ?><div class="book">
                    <p class="book_sort">分类：<?php echo ($book["book_type"]); ?></p>
                    <p class="book_name">小说：<a href='<?php echo ($book["book_url"]); ?>'><?php echo ($book["book_name"]); ?></a></p>
                    <p><img src="<?php echo ($book["book_picture"]); ?>"/></p>
                    <p>作者：<?php echo ($book["book_auther"]); ?></p>
                    <p>介绍：<?php echo ($book["book_introduction"]); ?></p>
                </div><?php endforeach; endif; ?>
        </div>
        <div><?php echo ($page); ?></div>
    </div>
</body>
</html>